<?php
defined( '_JEXEC' ) or die;

jimport('joomla.application.component.controller');

class PricerProductsController extends JController{

	protected $default_view = 'products';

	function display($cachable = false, $urlparams = false) {

		require_once JPATH_COMPONENT.'/helpers/pricerproducts.php';

		// Load the submenu.
		PricerProductsHelper::addSubmenu(JRequest::getCmd('view', 'products'));

		$view = JRequest::getCmd('view', 'products');
//		$layout = JRequest::getCmd('layout', 'articles');
		$id = JRequest::getInt('id');

		// Set default view if not set
		JRequest::setVar('view', JRequest::getCmd('view', 'Products'));

		parent::display();

		return $this;
	}
}
